<?php
return array(
  array(
    'title' => 'User Questions',
    'description' => 'Display a list of questions created by user',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.profile-questions', 
    'defaultParams' => array(
      'title' => 'Questions',
      'titleCount' => true
    ),
    'requirements' => array(
      'subject' => 'user',
    ),
  ),
  array(
    'title' => 'Browse Questions',
    'description' => 'Display questions',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.browse',
    'defaultParams' => array(
      'title' => ''
    ),
  ),
  array(
    'title' => 'Question Menu',
    'description' => 'Display a menu of poll',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.navigator',
    'isPaginated' => true,
    'defaultParams' => array(
      'title' => ''
    ),
  ),
  array(
    'title' => 'Latest Questions',
    'description' => 'Display a list of lastest questions',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.latest-questions',
    'defaultParams' => array(
      'title' => 'Latest Questions'
    ),
  ),
  array(
    'title' => 'Popular Questions',
    'description' => 'Display a list of popular questions',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.popular-questions',  
    'defaultParams' => array(
      'title' => 'Popular Questions'
    ),
  ),
  array(
    'title' => 'Friends Questions',
    'description' => 'Display a list of friends questions',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.friends-questions',   
    'defaultParams' => array(
      'title' => 'Friends Questions'
    ),
  ),
  array(
    'title' => 'Search Questions',
    'description' => 'Display a form for searching questions',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.search-form'
  ),
  array(
    'title' => 'Random Questions',
    'description' => 'Display a list questions in random order',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.random-questions',
    'adminForm' => array(
      'elements' => array(
        array(
          'Integer',
          'limit',
          array(
            'label' => 'Number of items show',
            'value' => 5,
          )
        ),
      )
    )
  ),
  array(
    'title' => 'Feature Questions',
    'description' => 'Display a list of feature questions in random order',
    'category' => 'Poll',
    'type' => 'widget',
    'name' => 'poll.feature-questions',
    'adminForm' => array(
      'elements' => array(
        array(
          'Integer',
          'limit',
          array(
            'label' => 'Number of items show',
            'value' => 5,
          )
        ),
      )
    )
  ),
) ?>